﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;

namespace ExpenseSystem.Model
{
    [TableName("SYS_ROLEUSER")]
    public class RoleUserModel:SystemModel
    {
        private long _userid;
        private long _roleid;
        public virtual long RoleId
        {
            get { return _roleid; }
            set
            {
                if (_roleid == value)
                    return;
                _roleid = value;
                if (!PropertyUpdated.Contains("RoleId"))
                    PropertyUpdated.Add("RoleId");
            }
        }
        public virtual long UserId
        {
            get { return _userid; }
            set
            {
                if (_userid == value)
                    return;
                _userid = value;
                if (!PropertyUpdated.Contains("UserId"))
                    PropertyUpdated.Add("UserId");
            }
        }
    }
}
